﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BulkRenamer.Util;
using System.Collections.ObjectModel;

namespace POC_AddressBox
{
    public partial class AddressTextBox : UserControl
    {
        public AddressTextBox()
        {
            InitializeComponent();

            cmbPathSuggestions.Height = txtPath.Height = height = 20;

            ObservableCollection<Utilities.eCopyProperties> remove = new ObservableCollection<Utilities.eCopyProperties>();
            foreach (Utilities.eCopyProperties cprop in Enum.GetValues(typeof(Utilities. eCopyProperties)).Cast<Utilities.eCopyProperties>())
            {
                if (cprop != Utilities.eCopyProperties.Size) remove.Add(cprop);
            }

            Utilities.CopyDesign(this, txtPath, false, remove);
            //Utilities.CopyDesign(txtPath, cmbPathSuggestions, false);

            txtPath.Text = "asdasda#$!!#^%%#!dsadasdasds";
        }

        private int height;
        public new int Height { get { return height; } }

        private void AddressTextBox_Resize(object sender, EventArgs e)
        {
            ObservableCollection<Utilities.eCopyProperties> remove = new ObservableCollection<Utilities.eCopyProperties>();

            remove.Add(Utilities.eCopyProperties.BackColor);
            remove.Add(Utilities.eCopyProperties.Anchor);
            remove.Add(Utilities.eCopyProperties.Location);

            Utilities.CopyDesign(this, txtPath, false, remove);
            //Utilities.CopyDesign(txtPath, cmbPathSuggestions, false);
        }
    }
}
